package com.example.dbRouting.db;

import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class RouterSet {

	/** 数据库表的逻辑KEY,与数据源MAP配置中的key一致 */
	private List<String> dbKeyArray;

	/** 数据库表的逻辑KEY,与数据源MAP配置中的key一致 */
	private List<Map<String, Object>> dbKeyMap;

	/** 数据库数量 */
	private int dbNumber=3;
	/** 数据表数量 */
	private int tableNumber=5;
	/** 数据表index样式 */
	private String tableIndexStyle;
	/** Id开始 */
	private String routeFieldStart="0";
	/** Id结束 */
	private String routeFieldEnd="9200000000000000000";
	/** 规则类型 */
	private int ruleType=3;
	/** 路由类型类型 */
	private int routeType=1;

	public List<String> getDbKeyArray() {
		return dbKeyArray;
	}

	public void setDbKeyArray(List<String> dbKeyArray) {
		this.dbKeyArray = dbKeyArray;
	}

	public int getDbNumber() {
		return dbNumber;
	}

	public void setDbNumber(int dbNumber) {
		this.dbNumber = dbNumber;
	}

	public int getTableNumber() {
		return tableNumber;
	}

	public void setTableNumber(int tableNumber) {
		this.tableNumber = tableNumber;
	}

	public String getTableIndexStyle() {
		return tableIndexStyle;
	}

	public void setTableIndexStyle(String tableIndexStyle) {
		this.tableIndexStyle = tableIndexStyle;
	}

	public String getRouteFieldStart() {
		return routeFieldStart;
	}

	public void setRouteFieldStart(String routeFieldStart) {
		this.routeFieldStart = routeFieldStart;
	}

	public String getRouteFieldEnd() {
		return routeFieldEnd;
	}

	public void setRouteFieldEnd(String routeFieldEnd) {
		this.routeFieldEnd = routeFieldEnd;
	}

	public int getRuleType() {
		return ruleType;
	}

	public void setRuleType(int ruleType) {
		this.ruleType = ruleType;
	}

	public int getRouteType() {
		return routeType;
	}

	public void setRouteType(int routeType) {
		this.routeType = routeType;
	}

	public List<Map<String, Object>> getDbKeyMap() {
		return dbKeyMap;
	}

	public void setDbKeyMap(List<Map<String, Object>> dbKeyMap) {
		this.dbKeyMap = dbKeyMap;
	}
	

}
